/*
 * $Id: arbitrary.scss 348 2012-12-03 01:03:15Z bobcat $
 * General styles for extra pages like account and information links.
 */

// imports
@import '../main/main';

// elements
p {
  margin-bottom: 1em;
}

// classes
.sep {
  margin-left: 1.5em;
  margin-right: 1.5em;
}

.address {
  margin-bottom: 1em;
  font-weight: bold;

  p {
    margin: 0;
  }
}

.caption {
  img {
    margin-bottom: .5em;
  }
}

.button {
  @include clean-gray(#4682B4, #fff);
  padding: .3em 1em;

  &:focus {
    outline: none;
  }
}

.access-account {
  form div {
    margin: 1em 0;
  }

  button {
    @include clean-gray(#4682B4, #fff);
    padding: .3em 1em;

    &:focus {
      outline: none;
    }
  }

  label {
    font-size: .75em;
    display: block;
  }

  input {
    @include border-radius(.25em);
    border: 2px solid #DDD;
    color: #292929;
    font-size: 1em;
    font-family: $font-family;
    padding: .5em;
  }

  input:focus {
    outline: none;
    border-color: $border-color - #333;
  }

  section {
    vertical-align: top;
    margin-bottom: 2em;
  }

  .loading {
    background-image: url('../../img/icons/ajax-loader.gif');
    background-position: center center;
    background-size: 1em;
    background-repeat: no-repeat;
    display: inline-block;
    opacity: 0;
    width: 1em;
    height: 1em;
    margin-left: 1em;
    vertical-align: middle;
  }

  .error {
    color: #DB1C1C;
  }

  .text {
    width: 15em;
  }

  .swapbox {
    overflow: hidden;
    position: relative;

    form, .success {
      height: 13em;
    }

    form {
      position: relative;
      top: 0;
    }

    .success {
      position: absolute;
      top: -13em;

      p {
        margin: 1em 0;
        font-size: 1.2em;
      }
    }
  }
}

.activate, .deactivate {
  div {
    margin-bottom: 2em !important;
  }
}

.activate {
  text-align: center;

  p, ul {
    text-align: left;
    margin-bottom: 1em;
  }
}

.logout, .deactivate {
  text-align: center;

  p {
    font-size: 1.2em;
  }
}

// ids
#center-col {
  article > div {
    vertical-align: top;

    & > section {
      margin-bottom: 1.75em;
    }
  }

  h4 {
    border-bottom: 1px solid $border-color;
    margin-bottom: .5em;
  }

  td {
    display: block;
    padding-top: .25em;
    padding-bottom: .25em;

    &:first-child {
      font-weight: bold;
      padding-right: 2em;
    }
  }

  ul {
    font-size: .9em;
    margin-left: 1.5em;
  }

  .logout {
    margin-bottom: 2em;
  }

  #viewmap {
    @include clean-gray(#4682B4, #fff);

    .icon {
      padding: 0 1em 0 2em;
      background-image: url('../../img/icons/light/64px/64_map.png');
      background-position: .7em center;
      background-size: 1em;
    }
  }
}

// media queries
@import 'queries';